home *** CD-ROM | disk | FTP | other *** search
- Path: kai.com!not-for-mail
- From: robison@kai.com (Arch Robison)
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: Performance: C vs. C++
- Date: 24 Jan 1996 14:33:13 -0600
- Organization: Kuck & Associates, Inc.
- Message-ID: <4e6529$c6g@kai.com>
- References: <4da9pn$a45@news.bridge.net> <4dnpl2$c8g@classic.iinet.com.au> <3105E9DC.1BE3@enermet.fi>
- NNTP-Posting-Host: kai.com
-
- The difference between C and C++ performance depends upon how the code
- is written, how good the compiler is, and whether the code is compute-bound
- or IO-bound. We know of a ray-tracing application (Eon) that runs 2x faster
- on some platforms when compiled with our Photon C++ compiler than the
- vendor's C++ compiler. On the other hand, there are certainly codes
- where computation performance does not matter.
-
- For some measurements of C++ performance on small kernels,
- for C-style vs. C++-style code, take a look at:
-
- http://www.kai.com/haney/haney.html
- http://www.kai.com/oopack/oopack.html
-
- Note that the examples therein do not have the "usual suspects":
- virtual functions, explicit use of exceptions, run-time type information, etc.
- Yet there is a wide range of performance from different C++ compilers.
-
- Arch D. Robison
- Lead Developer for Photon C++ Kuck & Associates Inc.
- robison@kai.com 1906 Fox Drive
- 217-356-2288 Champaign IL 61820
-